package com.auxgroup.smarthome.inner.controller;

import com.auxgroup.bridge.business.inner.vo.BaseFeatureVo;
import com.auxgroup.smarthome.inner.service.BaseFeatureDBService;
import com.auxgroup.smarthome.web.ApiResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by root on 17-7-25.
 */
@Api(description = "基础功能", tags = "获取base_feature")
@RestController
public class BaseFeatureController {

    @Autowired
    private BaseFeatureDBService baseFeatureDBService;

    @ApiOperation(value = "获取基础功能",notes = "")
    @RequestMapping(value = "/baseFeature", method = RequestMethod.GET)
        public ApiResponse<List<BaseFeatureVo>> findAll(){
        return ApiResponse.ok(baseFeatureDBService.findAll());
    }
}
